﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="help_menu_outlook.aspx.cs" Inherits="AnyOffice.general.ipanel.help_menu_outlook" %>

<%
string checkedNavID="01";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onLoad="initNav();">
<table name="tableNavArea" id="tableNavArea" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
         <tr> 
          <td width="100%" valign="top">
			<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="100%" valign="top" bgcolor="#FFFFFF" class="navFrame">
				<iframe border=1 marginWidth=0 marginHeight=0 frameBorder=0 name=frameColumnNav id=frameColumnNav src="" style="width:100%;height:100%" scrolling="auto"></iframe> 
                </td>
              </tr>
              <tr> 
                <td height="5px" valign="bottom" class="navMain" align=center style="cursor:hand" onclick="changeNav();"><img src="/theme/bg_middle1_button.gif" height="5px"></td>
              </tr>
              <tr name=navMenu id=navMenu> 
				<td height="0px" valign="bottom" bgcolor="#FFFFFF"  class="navMenu">
					<div name=divNav id=divNav style="display:">
					<%
if(dtbMenu.Rows.Count > 0)
{
for(int i=0;i<dtbMenu.Rows.Count;i++)
{
if(i==0)
	checkedNavID = dtbMenu.Rows[i]["MenuId"].ToString();
	%>
		<div title="<%=dtbMenu.Rows[i]["MenuName"].ToString()%>" id="_div_<%=dtbMenu.Rows[i]["MenuId"].ToString()%>" class="nav_column_dark" onmouseover="_onmouseover('<%=dtbMenu.Rows[i]["MenuId"].ToString()%>')" onmouseout="_onmouseout('<%=dtbMenu.Rows[i]["MenuId"].ToString()%>')" onclick="checkNav('<%=dtbMenu.Rows[i]["MenuId"].ToString()%>')" <span style=""><img src="/images/menu/<%=dtbMenu.Rows[i]["Image"].ToString()%>.gif" align=absmiddle height=16 width=16></span>
		<span style="height:100%;padding-left:5px;padding-top:5px;"><%=dtbMenu.Rows[i]["MenuName"].ToString()%></span></div>
	<%
}
}

%></div>
<div name=divNavIndex id=divNavIndex style="display:none;" class="navIndex">
<%
if(dtbMenu.Rows.Count > 0)
{
for(int i=0;i<dtbMenu.Rows.Count;i++)
{
	%><img title="<%=dtbMenu.Rows[i]["MenuName"].ToString()%>" src="/images/menu/<%=dtbMenu.Rows[i]["Image"].ToString()%>.gif" align=absmiddle height=16 width=16 style="cursor:pointer;cursor:hand;" onclick="checkNav('<%=dtbMenu.Rows[i]["MenuId"].ToString()%>')">
	<% 
}
}

%></div></td>
              </tr>
            </table>
			</td>
        </tr>
        <tr> 
          <td height="20" style="height:20px" valign="bottom"> 
            <table width="60%" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr>
                <td width="50%" align="center"> 
                  <table border="0" cellpadding="0" cellspacing="0" class="navTool">
                    <tr align="center"> 
                      <td onclick="changeNav();"><a name="title1" id="title1" href='#'> 
                        最小化
                        </a></td>
                    </tr>
                  </table></td>
                <td width="50%" align="center"> 
                  <table  name="" id="" border="0" cellpadding="0" cellspacing="1" class="navTool">
                    <tr> 
                      <td align="center" name='tTitle1'><a name='tTitle2' href="/general/person_info/index.aspx" target="main">设 置</a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
</body>
</html>
<script language="JavaScript">
<!--
var checkedNavID = "<%=checkedNavID%>";
var changeNavType = 0; //显示方式 //1 //0 NavIndex

function _onmouseover(id)
{
	if(checkedNavID == id) return;

	var e = eval("document.getElementById('_div_"+ id + "')");
	e.className="nav_column_light";
}

function _onmouseout(id)
{
	if(checkedNavID == id) return;

	var e = eval("document.getElementById('_div_"+ id + "')");
	e.className="nav_column_dark";
}

function checkNav(id)
{
	var e = eval("document.getElementById('_div_"+ checkedNavID + "')");
	e.className="nav_column_dark";

	checkedNavID = id;
	var e = eval("document.getElementById('_div_"+ id + "')");
	e.className="nav_column_light";

	document.getElementById("frameColumnNav").src = "menu_outlook_menu.aspx?menu_id=" + id;
}

function changeNav()
{
	if(changeNavType == 0)
	{
		document.getElementById("divNav").style.display = "none";
		document.getElementById("divNavIndex").style.display = "";

		changeNavType = 1;
		document.getElementById("title1").innerHTML = '菜 单';
	}
	else
	{
		document.getElementById("divNavIndex").style.display = "none";
		document.getElementById("divNav").style.display = "";
		changeNavType = 0;
		document.getElementById("title1").innerHTML = '最小化';
	}
}

function initNav()
{
	var e = eval("document.getElementById('_div_"+ checkedNavID + "')");
	e.className="nav_column_light";
	changeNav();
	
	document.getElementById("frameColumnNav").src = "menu_outlook_menu.aspx?menu_id=" + checkedNavID;
}
//-->
</script>